<template>
  <div class="movie">
    <ContentBox :title="title" :list="list"></ContentBox>
  </div>
</template>

<script>
export default {
  name: "Movie",
  activated() {
    console.log("activated", "进入组件");
  },
  deactivated() {
    console.log("deactivated", "离开组件");
  },
  data() {
    return {
      title: "正在看的电影",
      list: ["金刚大战哥斯拉", "祖宗十九代"],
    };
  },
  methods: {

  },
  beforeCreate() {
    console.log("创建-->前");
  },
  created() {
    console.log("创建-->后");
  },
  beforeMount() {
    console.log("挂载-->前");
  },
  mounted() {
    console.log("挂载-->后");
  },
  errorCaptured(err, vm, info) {
  },
};
</script>
